﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FirstFloor.Documents.Pdf
{
    /// <summary>
    /// References an object in an object stream.
    /// </summary>
    internal struct ObjectStreamReference
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ObjectStreamReference"/> struct.
        /// </summary>
        /// <param name="streamIdentifier">The stream identifier.</param>
        /// <param name="index">The index.</param>
        public ObjectStreamReference(ObjectIdentifier streamIdentifier, int index)
            : this()
        {
            this.StreamIdentifier = streamIdentifier;
            this.Index = index;
        }
        /// <summary>
        /// Gets the object stream identifier.
        /// </summary>
        /// <value>The object stream identifier.</value>
        public ObjectIdentifier StreamIdentifier { get; private set; }
        /// <summary>
        /// Gets the index of the object in the stream.
        /// </summary>
        /// <value>The index.</value>
        public int Index { get; private set; }
    }
}
